package education.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import education.dao.TestTypeDao;
import education.model.TestType;
import education.service.TestTypeManager;

@Component("testTypeManager")
public class TestTypeManagerImpl implements TestTypeManager {
	private TestTypeDao testTypeDao;

	public TestTypeDao getTestTypeDao() {
		return testTypeDao;
	}

	@Resource
	public void setTestTypeDao(TestTypeDao testTypeDao) {
		this.testTypeDao = testTypeDao;
	}

	public void delete(TestType testType) {
		// TODO Auto-generated method stub

	}

	public boolean delete(int id) {
		return testTypeDao.delete(id);
	}

	public int getCount() {
		return testTypeDao.getCount();
	}

	public TestType loadById(int id) {
		return testTypeDao.loadById(id);
	}

	public List<TestType> paging(int pageSize, int pageCount, int rowCount) {
		return testTypeDao.paging(pageSize, pageCount, rowCount);
	}

	public void save(TestType testType) {
		testTypeDao.save(testType);
	}

	public boolean update(TestType testType) {
		
		return testTypeDao.update(testType);
	}

	public List<TestType> getTestTypeList() {
		
		return testTypeDao.getTestTypeList();
	}

}
